package com.defangit.production.domain;

import java.time.LocalDateTime;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * 材料申领单
 */
public class MaterialBill {
    private int id;
    private String no;
    private Set<ManufactureItem> items=new HashSet<>();
    private Operator founder;
    private List<Operator> liables;
    private ProductionProcess process;
    private LocalDateTime createTime = LocalDateTime.now();
    private Operator storeKeeper;
    private int step;


    public int getStep() {
        return step;
    }

    public MaterialBill setStep(int step) {
        this.step = step;
        return this;
    }

    public int getId() {
        return id;
    }

    public MaterialBill setId(int id) {
        this.id = id;
        return this;
    }

    public String getNo() {
        return no;
    }

    public MaterialBill setNo(String no) {
        this.no = no;
        return this;
    }

    public Set<ManufactureItem> getItems() {
        return items;
    }

    public MaterialBill setItems(Set<ManufactureItem> items) {
        this.items = items;
        return this;
    }

    public Operator getFounder() {
        return founder;
    }

    public MaterialBill setFounder(Operator founder) {
        this.founder = founder;
        return this;
    }

    public List<Operator> getLiables() {
        return liables;
    }

    public MaterialBill setLiables(List<Operator> liables) {
        this.liables = liables;
        return this;
    }

    public ProductionProcess getProcess() {
        return process;
    }

    public MaterialBill setProcess(ProductionProcess process) {
        this.process = process;
        return this;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public MaterialBill setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
        return this;
    }

    public Operator getStoreKeeper() {
        return storeKeeper;
    }

    public void setStoreKeeper(Operator storeKeeper) {
        this.storeKeeper = storeKeeper;
    }
}
